package qvanguoobject.test04;

public class Student {
    // 成员变量
    private String sNO;   // 学号
    private String sName; // 姓名
    private String sSex;  // 性别
    private int sAge;     // 年龄
    private double sJava; // Java课程成绩

    // 带参数的构造方法
    public Student(String sNO, String sName, String sSex, int sAge, double sJava) {
        this.sNO = sNO;
        this.sName = sName;
        this.sSex = sSex;
        this.sAge = sAge;
        this.sJava = sJava;
    }

    // 获取方法
    public String getNo() {
        return sNO;
    }

    public String getName() {
        return sName;
    }

    public String getSex() {
        return sSex;
    }

    public int getAge() {
        return sAge;
    }

    public double getJava() {
        return sJava;
    }
}
